]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
search: Disable multiline descriptions
authorRares Visalom <rares.visalom@gmail.com>
Sun, 9 Jul 2017 16:25:49 +0000 (19:25 +0300)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 14 Jul 2017 20:40:25 +0000 (22:40 +0200)
Having descriptions with multiple lines will clutter
the view and make it more confusing for the user. Apart
from that, it also makes the search result a lot bigger,
potentially losing general vertical alignment.

https://bugzilla.gnome.org/show_bug.cgi?id=749957

js/ui/search.js

index dd3ea1318a13ce666a5ff43042349a133f9260a6..4b2cd520ac348866493a14d914d61782f4681a99 100644 (file)
@@ -125,7 +125,7 @@ const ListSearchResult = new Lang.Class({
     },
 
     _highlightTerms: function() {
-        let markup = this._resultsView.highlightTerms(this.metaInfo['description']);
+        let markup = this._resultsView.highlightTerms(this.metaInfo['description'].split('\n')[0]);
         this._descriptionLabel.clutter_text.set_markup(markup);
     },